part of 'page.dart';

class _PronunciationSettingsPageWlocStateFactory {
  const _PronunciationSettingsPageWlocStateFactory._internal();

  static const _instance = _PronunciationSettingsPageWlocStateFactory._internal();

  factory _PronunciationSettingsPageWlocStateFactory() {
    return _instance;
  }

  _PronunciationSettingsPageWlocState create({
    required bloc.PronunciationSettingsPageBlocState blocState,
  }) {
    return _PronunciationSettingsPageWlocState(
      voice: blocState.voice,
      dialect: blocState.pronunciationSettings.dialect,
      normalizedSpeechRate: blocState.normalizedSpeechRate,
      availableAmVoices: blocState.availableAmVoices,
      availableBrVoices: blocState.availableBrVoices,
    );
  }
}
